//
//  LKUFCustomButtonCell.m
//  Mideleague_Agent
//
//  Created by Zhiwang on 2020/5/29.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKUFCustomButtonCell.h"
#import "LKUFCustomRow.h"
#import <Masonry/Masonry.h>
@interface LKUFCustomButtonCell()


@property(nonatomic,strong)LKUFCustomRow *customRow;

@end
@implementation LKUFCustomButtonCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _button = [LKBaseButton buttonWithFrame:CGRectZero type:UIButtonTypeCustom title:@"未开通" titleColor:yellowDefaultColor layercorne:0 font:[UIFont fontWithName:@"PingFangSC-Regular" size:16] backgroudColor:[UIColor whiteColor] AndActionBlock:^(UIButton * _Nonnull btn) {
            NSLog(@"点击");
        }];

        [self.contentView addSubview:_button];
        [_button mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.contentView.mas_right).offset(-20);
            make.centerY.equalTo(self.contentView);

        }];
        // 自定义UI
        
    }
    return self;
}
-(void)setRow:(__kindof UFRow *)row{
    _customRow = (LKUFCustomRow *)row;
    [super setRow:row];
}
-(void)setupConstraints{
    [super setupConstraints];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
